package com.otupia.acs.session.stateless;

import org.apache.log4j.Logger;

import com.otupia.acs.entity.UserInfo;
import com.otupia.acs.spring.api.UserManager;

public class UserManagerBeanSpring implements UserManager
{
	Logger logger = Logger.getLogger(UserManagerBeanSpring.class);
	
	public void register(UserInfo userInfo)
	{
		logger.info("calling function UserManagerBeanSpring"
				+ "#register with arguments : [" + userInfo + "]");
		
		//TODO
		
		logger.info("exiting function UserManagerBeanSpring"
				+ "#register with result : [" + userInfo + "]");
	}

	public void removeUser(long userId)
	{
		logger.info("calling function UserManagerBeanSpring"
				+ "#removeUser with arguments : [" + userId + "]");
		//TODO
		
		logger.info("exiting function UserManagerBeanSpring"
				+ "#removeUser with result : [" + userId + "]");
	}

	public UserInfo findUser(long userId)
	{
		logger.info("calling function UserManagerBeanSpring"
				+ "#findUser with arguments : [" + userId + "]");
		//TODO
		
		logger.info("exiting function UserManagerBeanSpring"
				+ "#findUser with result : [" + userId + "]");
		return null;
	}

	public void updateUser(UserInfo userInfo)
	{
		logger.info("calling function UserManagerBeanSpring"
				+ "#updateUser with arguments : [" + userInfo + "]");
		
		//TODO
		
		logger.info("exiting function UserManagerBeanSpring"
				+ "#updateUser with result : [" + userInfo + "]");
	}

}
